From: Florian Müllner Date: Thu, 3 Sep 2026 17:51:05 +0000 (+0200) Subject: loginDialog: Pass tracked object to connectObject() calls X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~6^2^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0a42089bce80db45cafcf82bbf493673af747169;p=gnome-shell.git loginDialog: Pass tracked object to connectObject() calls Otherwise the handler will be associated with the `globalThis` object and never get disconnected automatically. Part-of: (cherry picked from commit eafb4e601904222bb8d6b2c3aa88b264338f374a) --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 4ec381f4a..25bfb26f6 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -904,7 +904,7 @@ export const LoginDialog = GObject.registerClass({ this._userManager.disconnectObject(this); this._loadUserList(); } - }); + }, this); } else { const id = GLib.idle_add_once(GLib.PRIORITY_DEFAULT, this._loadUserList.bind(this)); GLib.Source.set_name_by_id(id, '[gnome-shell] _loadUserList');